Fix xc_make_page_below_4G(). Should fix PAE domain
authorkaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk>
Wed, 14 Sep 2005 16:56:05 +0000 (16:56 +0000)
committerkaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk>
Wed, 14 Sep 2005 16:56:05 +0000 (16:56 +0000)
building on >= 4GB systems.

Signed-off-by: Keir Fraser <keir@xensource.com>
tools/libxc/xc_private.c

index 58f34c8eb1cb050853d29e2ea5d1c91069d7701f..e3ebc0931bec99d3dee1317e4ce6638406aaa490 100644 (file)
@@ -456,14 +456,14 @@ unsigned long xc_make_page_below_4G(
     unsigned long new_mfn;
 
     if ( xc_domain_memory_decrease_reservation( 
-       xc_handle, domid, 1, 0, &mfn) != 1 )
+       xc_handle, domid, 1, 0, &mfn) != 0 )
     {
        fprintf(stderr,"xc_make_page_below_4G decrease failed. mfn=%lx\n",mfn);
        return 0;
     }
 
     if ( xc_domain_memory_increase_reservation(
-        xc_handle, domid, 1, 0, 32, &new_mfn) != 1 )
+        xc_handle, domid, 1, 0, 32, &new_mfn) != 0 )
     {
        fprintf(stderr,"xc_make_page_below_4G increase failed. mfn=%lx\n",mfn);
        return 0;